public class 作业3{
    public static void main(String[] args) {
        int a = 5;
        int b = 10;
        int ab = a > b ? a : b;
        System.out.println(ab);

        int a1 = 5;
        int a2 = 10;
        int a3 = 15;
        int max = a1 > a2 ? a1 : a2;
        max =max > a3 ? max :a3;
        System.out.println(max);

        int b1 = 100;
        long b2 = b1;
        float b3 = b2;
        System.out.println(b3);

        double x =3.14159;
        int y = (int) x;
        byte z = (byte) 130;
        System.out.println("y = " + y);
        System.out.println("z = " + z);

        short s1 =10;
        short s2 =20;
        short s3 =(short) (s1+s2);
        System.out.println(s3);

    }
}
